import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 导入ArticleItem组件
import ArticleItem from '@/components/ArticleItem.vue'

// 完整导入，可以随便使用vant的组件
import Vant from 'vant'
import 'vant/lib/index.css'
import 'vant/lib/index.less'
Vue.use(Vant)

// 自动按需导入
// import { Button, Icon } from 'vant'

// Vue.use(Button)
// Vue.use(Icon)

Vue.component('ArticleItem', ArticleItem)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
